package com.mmall.dto;

import com.mmall.model.SysAcl;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.BeanUtils;

/**
 * Created by asus on 2018/4/16.
 */
@Setter
@Getter
public class AclDto extends SysAcl {
    private boolean checked = false;

    private boolean hasAcl = false;

    public static AclDto adapt(SysAcl sysAcl){
        AclDto dto = new AclDto();
        BeanUtils.copyProperties(sysAcl,dto);
        return dto;
    }
}
